]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st: Deprecate StBoxLayout child properties
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 23 Oct 2019 13:15:42 +0000 (15:15 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 1 Nov 2019 19:42:02 +0000 (19:42 +0000)
We are no longer using them, and so shouldn't anyone else :-)

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/780

src/st/st-box-layout-child.c

index e2c7332d28080b4c1d3aa93bdbaf4e36e00e628d..e78a76c49be93df0f4a4b95e715aa58d108684b6 100644 (file)
@@ -179,7 +179,7 @@ st_box_layout_child_class_init (StBoxLayoutChildClass *klass)
   pspec = g_param_spec_boolean ("expand", "Expand",
                                 "Allocate the child extra space",
                                 FALSE,
-                                ST_PARAM_READWRITE);
+                                ST_PARAM_READWRITE | G_PARAM_DEPRECATED);
   g_object_class_install_property (object_class, PROP_EXPAND, pspec);
 
   pspec = g_param_spec_boolean ("x-fill", "x-fill",
@@ -187,7 +187,7 @@ st_box_layout_child_class_init (StBoxLayoutChildClass *klass)
                                 "when the container is allocating spare space "
                                 "on the horizontal axis",
                                 TRUE,
-                                ST_PARAM_READWRITE);
+                                ST_PARAM_READWRITE | G_PARAM_DEPRECATED);
   g_object_class_install_property (object_class, PROP_X_FILL, pspec);
 
   pspec = g_param_spec_boolean ("y-fill", "y-fill",
@@ -195,7 +195,7 @@ st_box_layout_child_class_init (StBoxLayoutChildClass *klass)
                                 "when the container is allocating spare space "
                                 "on the vertical axis",
                                 TRUE,
-                                ST_PARAM_READWRITE);
+                                ST_PARAM_READWRITE | G_PARAM_DEPRECATED);
   g_object_class_install_property (object_class, PROP_Y_FILL, pspec);
 
   pspec = g_param_spec_enum ("x-align",
@@ -203,7 +203,7 @@ st_box_layout_child_class_init (StBoxLayoutChildClass *klass)
                              "X alignment of the widget within the cell",
                              ST_TYPE_ALIGN,
                              ST_ALIGN_MIDDLE,
-                             ST_PARAM_READWRITE);
+                             ST_PARAM_READWRITE | G_PARAM_DEPRECATED);
   g_object_class_install_property (object_class, PROP_X_ALIGN, pspec);
 
   pspec = g_param_spec_enum ("y-align",
@@ -211,7 +211,7 @@ st_box_layout_child_class_init (StBoxLayoutChildClass *klass)
                              "Y alignment of the widget within the cell",
                              ST_TYPE_ALIGN,
                              ST_ALIGN_MIDDLE,
-                             ST_PARAM_READWRITE);
+                             ST_PARAM_READWRITE | G_PARAM_DEPRECATED);
   g_object_class_install_property (object_class, PROP_Y_ALIGN, pspec);
 }